package net.pws.oos.biz.service;

import java.util.List;

import net.pws.oos.biz.model.Attachment;
import net.pws.oos.biz.model.PhotoMarker;

public interface AttachmentService {

	/**
	 * 保存附件对象
	 * 
	 * @param attachment
	 * @return
	 */
	public Attachment saveAttachment(Attachment attachment);

	public Attachment saveAttachment(Attachment attachment,
			List<PhotoMarker> photoMarkers);

	/**
	 * 保存标记
	 * 
	 * @param photoMarker
	 * @return
	 */
	public PhotoMarker savePhotoMarker(PhotoMarker photoMarker);

	public void savePhotoMarkers(List<PhotoMarker> photoMarkers);

	/**
	 * 删除原先的标注，增加新的
	 * 
	 * @param attachment
	 * @param markers
	 */
	public void updatePhotoMarkers(Attachment attachment,
			List<PhotoMarker> markers);

	/**
	 * 删除指定图片的标记
	 * 
	 * @param photoId
	 */
	public void deletePhotoMarkers(String photoId);

}
